package com.mes.service.hy;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.mes.dao.hy.FactoryMapper;
import com.mes.entity.hy.Factory;

/**
 * 
 * @ClassName:FactoryServiceImpl
 * @Description: 工厂service实现类
 * @Author hy
 * @Date 2018-5-30上午10:51:01
 * @version 1.0
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class FactoryServiceImpl implements IFactoryService{
	@Resource
	private FactoryMapper factoryMapper;

	@Override
	public int countByFactory(Factory factory) {
		return factoryMapper.countByFactory(factory);
	}

	@Override
	public int deleteByPrimaryKey(Long fid) {
		return factoryMapper.deleteByPrimaryKey(fid);
	}

	@Override
	public int insert(Factory factory) {
		return factoryMapper.insert(factory);
	}

	@Override
	public Factory selectByPrimaryKey(Long fid) {
		return factoryMapper.selectByPrimaryKey(fid);
	}

	@Override
	public List<Factory> selectByOther(Factory factory) {
		return factoryMapper.selectByOther(factory);
	}

	@Override
	public List<Factory> selectAll() {
		return factoryMapper.selectAll();
	}

	@Override
	public int update(Factory factory) {
		return factoryMapper.update(factory);
	}

	@Override
	public int sel(Factory factory) {
		return factoryMapper.sel(factory);
	}

}
